// store里面是放数据的，也就是state,actions,mutations,getters,
// state:里面专门放数据
// actions:里面专门用来执行异步请求的函数
// mutations:专门用来直接控制state里的数据，增删改查
// getters:专门用来放计算属性
import Vuex from 'vuex'
import  Vue from 'vue'
import home from './home'
import search from './search'

Vue.use(Vuex)  
const state={}
const actions={}
const mutations={}

const store = new Vuex.Store(
    {
        state: state,
        // getters: getters,
        actions: actions,
        mutations: mutations,
        modules:{home,search},
      
    }
)
export default store